From a1b09ea2caeceab4077295649f5ededa8d3510b7 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Tue, 5 Aug 2003 15:02:01 +0000 Subject: [PATCH] duplicate filter would crash if there wre no waypoints in the list --- duplicate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/duplicate.c b/duplicate.c index 570cf3701..15fe41ce4 100644 --- a/duplicate.c +++ b/duplicate.c @@ -273,7 +273,9 @@ duplicate_process(void) } xfree(htable); - free_tree(sup_tree); + if ( sup_tree ) { + free_tree(sup_tree); + } } void -- 2.30.2